package com.gopay.common.domain.cbrmb;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * @ClassName: CbRemitFileUploadDtl 
 * @Description: 跨境汇款文件上传流水表
 * @author huangcheng 
 * @date 2016年7月14日 下午4:17:26
 */
@Entity
@Table(name = "CB_REMIT_FILE_UPLOAD_DTL")
public class CbRemitFileUploadDtl extends BaseEntity {

    private static final long serialVersionUID = -5271907258908110798L;

    /** 
     * 主键
     */
    private Integer id;

    /** 
     * 国付宝交易号
     */
    private String gopayorderid;

    /** 
     * 客户ID
     */
    private String custId;

    /** 
     * 原始文件名称
     */
    private String oriFileName;

    /** 
     * 文件实际地址
     */
    private String fileAddr;

    /** 
     * 文件URL
     */
    private String fileUrl;

    /** 
     * 是否删除
     */
    private Character isDelete;

    /** 
     * 备注
     */
    private String remarks;

    /** 
     * 创建时间
     */
    private Date createdTs;

    /** 
     * 最后更新时间
     */
    private Date lastUpdTs;

    /** 
     * 乐观锁版本号
     */
    private int version;

    public CbRemitFileUploadDtl() {
    }

    public CbRemitFileUploadDtl(Integer id) {
        setId(id);
    }

    public CbRemitFileUploadDtl(Integer id, String gopayorderid, String custId, String oriFileName, String fileAddr,
            String fileUrl, Character isDelete, String remarks, Date createdTs, Date lastUpdTs,
            int version) {
        setId(id);
        setGopayorderid(gopayorderid);
        setCustId(custId);
        setOriFileName(oriFileName);
        setFileAddr(fileAddr);
        setFileUrl(fileUrl);
        setIsDelete(isDelete);
        setRemarks(remarks);
        setCreatedTs(createdTs);
        setLastUpdTs(lastUpdTs);
        setVersion(version);
    }

    @Id
    @SequenceGenerator(name="CbRemitFileUploadDtlSeq",sequenceName="CB_REMIT_FILE_UPLOAD_DTL_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CbRemitFileUploadDtlSeq")
    @Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "GOPAYORDERID", length = 30)
    public String getGopayorderid() {
        return this.gopayorderid;
    }

    public void setGopayorderid(String gopayorderid) {
        this.gopayorderid = gopayorderid;
    }

    @Column(name = "CUST_ID", length = 10)
    public String getCustId() {
        return this.custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Column(name = "ORI_FILE_NAME", length = 200)
    public String getOriFileName() {
        return this.oriFileName;
    }

    public void setOriFileName(String oriFileName) {
        this.oriFileName = oriFileName;
    }

    @Column(name = "FILE_ADDR", length = 200)
    public String getFileAddr() {
        return this.fileAddr;
    }

    public void setFileAddr(String fileAddr) {
        this.fileAddr = fileAddr;
    }

    @Column(name = "FILE_URL", length = 200)
    public String getFileUrl() {
        return this.fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Column(name = "IS_DELETE", length = 1)
    public Character getIsDelete() {
        return this.isDelete;
    }

    public void setIsDelete(Character isDelete) {
        this.isDelete = isDelete;
    }

    @Column(name = "REMARKS", length = 200)
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Column(name = "CREATED_TS")
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS")
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "VERSION", precision = 22, scale = 0)
    public int getVersion() {
        return this.version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

}
